package com.alageek.study.config;

import org.springframework.context.annotation.Configuration;

@Configuration
public class MyFastJsonConfig {
    //@Bean
    //FastJsonHttpMessageConverter fastJsonHttpMessageConverter(){
    //    FastJsonHttpMessageConverter converter = new FastJsonHttpMessageConverter();
    //    FastJsonConfig config = new FastJsonConfig();
    //    config.setDateFormat("yyyy-MM-dd");
    //    config.setCharset(Charset.forName("UTF-8"));
    //    config.setSerializerFeatures(
    //            SerializerFeature.WriteClassName,
    //            SerializerFeature.WriteMapNullValue,
    //            SerializerFeature.PrettyFormat,
    //            SerializerFeature.WriteNullListAsEmpty,
    //            SerializerFeature.WriteNullStringAsEmpty
    //    );
    //    converter.setFastJsonConfig(config);
    //    return converter;
    //}
}
